package com.ljf.task.enums;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.ljf.common.enums.BasicEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 任务操作明细  task_dat_task_operate  操作类型  operation_type  枚举
 *
 * @author LJF
 * @since 2025-07-20
 */
@Getter
@AllArgsConstructor
public enum TaskDatTaskOperateOperationTypeEnum implements BasicEnum {

    CREATED(1, "新增", false),
    UPDATED(2, "修改", false),
    DELETED(3, "删除", false),
    TO_BE_DESIGNED(4, "待设计", true),
    DESIGN_DRAFT(5, "设计暂存", false),
    DESIGN(6, "设计中", true),
    DESIGN_FINISHED(7, "设计完成", false),
    TO_BE_DEVELOPED(8, "待开发", true),
    DEVELOPING(9, "开发中", true),
    DETAIL_PENDING_PROCESSING(10, "明细-待处理", false),
    DETAIL_PROCESSING(11, "明细-处理中", false),
    DETAIL_COMPLETED(12, "明细-已完成", false),
    DEVELOP_FINISHED(13, "开发完成", false),
    JOINT_DEBUGGING_IN_PROGRESS(14, "联调中", true),
    JOINT_DEBUGGING_IN_PROGRESS_FINISHED(15, "联调完成", false),
    TO_BE_TESTED(16, "待测试", true),
    DURING_TESTING(17, "测试中", true),
    DURING_TESTING_FINISHED(18, "测试完成", false),
    TO_BE_RELEASED(19, "待发布", true),
    COMPLETED(20, "已完成", true),
    STATUS_UPDATED(21, "状态修改", false);

    @JsonProperty("code")
    @ApiModelProperty(value = "编码")
    private final Integer code;

    @JsonProperty("name")
    @ApiModelProperty(value = "描述")
    private final String name;

    @JsonProperty("isTitle")
    @ApiModelProperty(value = "是否标题")
    private final Boolean isTitle;

}
